package com.sy.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户添加或者修改时传递的数据型")
public class UserDTO {
    @TableId(type = IdType.AUTO)
    private Integer uid; // 编号
    @ApiModelProperty(name = "用户名",required = true)
    private String username; // 用户名
    @ApiModelProperty(name = "真实姓名",required = true)
    private String name; // 真实姓名
    @ApiModelProperty(name = "手机号",required = true)
    private String phone; // 手机号
    @ApiModelProperty(name = "年龄",required = true)
    private Integer age; // 年龄
    @ApiModelProperty(name = "性别",required = true)
    private Integer sex; // 性别 1：男  0：女
    @ApiModelProperty(name = "用户状态",required = true)
    private Integer status = 1; // 用户状态 1：启用 0：禁用
}
